package com.itheima.service;

import com.itheima.cammon.PageInof;
import com.itheima.pojo.Category;
import com.itheima.vo.CategoryVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 王同学
 */
@Transactional
public interface CategoryService {
      //新增菜品分类
        CategoryVO add(Category category);

    void update(Category category);

    boolean delete(String id);

    PageInof<Category> page(Integer start, Integer pageSize);

    List<Category> findAll(Integer type);
}
